<?php
/**
* PHP Template.
*/
?>
<div id="content">
	<div class="col1-2">
		<div class="col-padding">
			<h2>Find a club</h2>
			<?php /* 
			[club_id]
			[cName]
			[official_rep_id]
			[contact_id]
			[website]
			[created_date]
			[bbs_url]
			[club_privacy]
			[mission]
			[welcome_note]
			*/
			?>
			<div>
				<div class="container-padding" id="club-list-header">
					<div class="name">
						<div class="cell-padding">
							<h4>Club Name</h4>
						</div>
					</div>
					<div class="website">
						<div class="cell-padding">
							<h4>Website</h4>
						</div>
					</div>
					<div class="created">
						<div class="cell-padding">
							<h4>Created</h4>
						</div>
					</div>
					<div class="privacy">
						<div class="cell-padding">
							<h4>Privacy</h4>
						</div>
					</div>
					<div class="details">
						<div class="cell-padding">
							&nbsp;
						</div>
					</div>
					<div class="cleardiv"></div>
				</div>
			</div>
			<div id="clubs-list" class="container">
				<div class="container-padding">
				<?php $rowCount = 0; ?>
				<?php foreach($clubList->result() as $row): ?>
						<div class="<?php echo "row-" . $rowCount; ?>">
						<div class="name">
							<div class="cell-padding">
								<?php echo $row->cName; ?>
							</div>
						</div>
						<div class="website">
							<div class="cell-padding">
							<?php if($row->website!=""): ?>
							<a href="<?=$row->website?>" target="_blank" class="popup" title="<?php echo $row->cName . "'s Website";?>"><?=$row->website?></a>
							<?php else: ?>
								&nbsp;
							<?php endif; ?>
							</div>
						</div>
						<div class="created">
							<div class="cell-padding">
							<?php 
									$d = getNormalDate($row->created_date);
									echo $d["date"]; 
								?>
							</div>
						</div>
						<div class="privacy">
							<div class="cell-padding">
								<?php echo $row->club_privacy; ?>
							</div>
						</div>
						<div class="details">
							<div class="cell-padding">
									<a href="<?php echo "/clubs/view/" . $row->club_id; ?>" title="More Details">More Details</a>
							</div>
						</div>
						<div class="cleardiv"></div>
					</div>
						<?php $rowCount = ($rowCount>0)?0:1; ?>
						<? endforeach; ?>
				</div>
			</div>
		</div>
	</div>
	<div class="col3">
		<div class="col-padding">
			<div class="line-h vertical-separator"></div>
			<p>
				Lorem ipsum dolor sit amet, <strong>consectetur adipisicing</strong> elit, sed do eiusmod tempor <a href="javascript:void(0);">incididunt ut</a> labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
			</p>
		</div>
	</div>
</div>